import instance from "@/utils/request";

export function login(user) {
  return instance({
    method: "post",
    url: "/user/login",
    // data: user  //传入json对象   后台需 @RequestBody 但是用的spring security 使用传统方式接收参数
    data: `username=${user.username}&password=${user.password}`
  });
}
